59de0a537a31e15fb85c1bcf485e51ae87bfae9c,com.dubture.symfony.ui/src/com/dubture/symfony/ui/wizards/project/SymfonyProjectWizardFirstPage.java,SymfonyProjectWizardFirstPage,createControl,#Composite#,86
Before Change
// don't really have a choice with Symfony2 ;)
fVersionGroup = new VersionGroup(composite, PHPVersion.PHP5_3);
fSymfonyLayoutGroup = new SymfonyLayoutGroup(composite);
fJavaScriptSupportGroup = new JavaScriptSupportGroup(composite, this);
// symfonySupportGroup = new SymfonySupportGroup(this, composite, this);
fDetectGroup = new DetectGroup(composite, fPHPLocationGroup, fNameGroup);
// establish connections
fNameGroup.addObserver(fPHPLocationGroup);
fDetectGroup.addObserver(fSymfonyLayoutGroup);
fPHPLocationGroup.addObserver(fDetectGroup);
// initialize all elements
After Change
@Override
public void createControl(Composite parent) {
final Composite composite = new Composite(parent, SWT.NULL);
composite.setFont(parent.getFont());
composite.setLayout(initGridLayout(new GridLayout(1, false), false));
composite.setLayoutData(new GridData(GridData.HORIZONTAL_ALIGN_FILL));
initialName = "";
nameGroup = new NameGroup(composite, initialName, getShell());
nameGroup.addObserver(this);
PHPLocationGroup = new LocationGroup(composite, nameGroup, getShell());
final Group group = new Group(composite, SWT.None);
group.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
group.setLayout(new GridLayout(3, false));
group.setText("Optional information (composer.json)");
settingsGroup = new BasicSettingsGroup(group, getShell());
settingsGroup.addObserver(this);
CompositeData data = new CompositeData();
data.setParetnt(composite);